package com.uniview.mvpdemo.mvp;

import android.content.Context;

/**
 * Created by Lenovo on 2017/4/24.
 */

public class Fragment2Presenter implements Fragment2Contract.Presenter {

    private Fragment2Contract.View view;

    public Fragment2Presenter(Fragment2Contract.View view) {
        this.view = view;
        view.setPresenter(this);
        view.initViews();
    }

    @Override
    public String[] getData(Context context, String status) {
        if (status.equals("左边")) {
            return context.getResources().getStringArray(android.R.array.emailAddressTypes);
        } else if (status.equals("中间")) {
            return context.getResources().getStringArray(android.R.array.emailAddressTypes);
        } else {
            return context.getResources().getStringArray(android.R.array.emailAddressTypes);
        }
    }
}
